import request from '@/utils/request'
export function fetchList(params) {
return request({
url: '/shop/shopExpenseCategory/list',
method: 'get',
params: params
})
}
export function createShopExpenseCategory(data) {
return request({
url: '/shop/shopExpenseCategory/create',
method: 'post',
data: data
})
}

export function deleteShopExpenseCategory(id) {
return request({
url: '/shop/shopExpenseCategory/delete/' + id,
method: 'get',
})
}

export function getShopExpenseCategory(id) {
return request({
url: '/shop/shopExpenseCategory/' + id,
method: 'get',
})
}

export function updateShopExpenseCategory(id, data) {
return request({
url: '/shop/shopExpenseCategory/update/' + id,
method: 'post',
data: data
})
}

